<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
    <div th:fragment="page1">

        <template id="page1">
            <div class="page1">
                <h1>page1</h1>
                <my-num></my-num>
            </div>
        </template>

        <script>
            const Page1 = {
                template:'#page1',
                components:{
                    'my-num':Num,
                },
                data(){
                    return {}
                },
                methods:{}
            }
        </script>
    </div>
</html>